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