Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1176162
D206.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 5, 10:21 PM
Size
686 B
Mime Type
text/x-diff
Expires
Mon, Oct 6, 10:21 PM (19 h, 44 m)
Engine
blob
Format
Raw Data
Handle
762959
Attached To
D206: INP-1541 - Add formatter to the "PromoBlockGroupId" field of "promo-block" unit
D206.id.diff
View Options
Index: branches/5.2.x/core/units/promo_blocks/promo_blocks_config.php
===================================================================
--- branches/5.2.x/core/units/promo_blocks/promo_blocks_config.php
+++ branches/5.2.x/core/units/promo_blocks/promo_blocks_config.php
@@ -58,6 +58,7 @@
'BlockId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
'PromoBlockGroupId' => Array (
'type' => 'int',
+ 'formatter' => 'kOptionsFormatter',
'options_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'PromoBlockGroups ORDER BY Title', 'option_title_field' => 'Title', 'option_key_field' => 'PromoBlockGroupId',
'not_null' => 1, 'required' => 1, 'default' => 0,
),
Event Timeline
Log In to Comment