Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098830
D206.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
Thu, Aug 14, 6:12 AM
Size
686 B
Mime Type
text/x-diff
Expires
Fri, Aug 15, 6:12 AM (2 h, 3 m)
Engine
blob
Format
Raw Data
Handle
711442
Attached To
D206: INP-1541 - Add formatter to the "PromoBlockGroupId" field of "promo-block" unit
D206.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