Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727090
D155.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, 6:38 AM
Size
924 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 6:38 AM (3 d, 56 m ago)
Engine
blob
Format
Raw Data
Handle
537153
Attached To
D155: INP-1504 - Correctly use "index_type" option from multilingual field declaration
D155.diff
View Options
Index: branches/5.2.x/core/units/helpers/multilanguage_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/multilanguage_helper.php
+++ branches/5.2.x/core/units/helpers/multilanguage_helper.php
@@ -396,7 +396,12 @@
// create index for primary language column + for all others (if multiple languages installed)
list($field_name, $field_params) = explode(' ', $field_expression, 2);
- $index_type = isset($this->curFields[$ml_field]['index_type']) ? $this->curFields[$prev_field]['index_type'] : 'string';
+ if ( isset($this->curFields[$ml_field]['index_type']) ) {
+ $index_type = $this->curFields[$ml_field]['index_type'];
+ }
+ else {
+ $index_type = 'string';
+ }
$ret .= $index_type == 'string' ? 'ADD INDEX (`'.$field_name.'` (5) ), ' : 'ADD INDEX (`'.$field_name.'`), ';
$this->curIndexCount++;
Event Timeline
Log In to Comment