Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726843
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
Mon, Jan 6, 1:41 AM
Size
686 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:41 AM (2 d, 13 h ago)
Engine
blob
Format
Raw Data
Handle
536933
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