Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046792
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
Sun, Jun 29, 4:53 AM
Size
686 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 4:53 AM (1 h, 8 m)
Engine
blob
Format
Raw Data
Handle
676773
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