Skip to content

Commit

Permalink
Task techjoomla#286 feat: Add indexes in tjfields_fields_value table …
Browse files Browse the repository at this point in the history
…on content_id and field_id column
  • Loading branch information
ankush-maherwal committed Jul 24, 2020
1 parent be83daa commit 176c081
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion administrator/assets/js/tjfields.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jQuery(document).ready(function(){
if (result.data) {
var element = jQuery("input[fileFieldId='" + fieldId + "']");
element.val('');
element.next().remove('div.control-group');
element.parent().remove('div.control-group');
}
}
});
Expand Down
6 changes: 0 additions & 6 deletions administrator/models/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ public function getForm($data = array(), $loadData = true)
$form->setFieldAttribute('fieldoption', 'required', true);
}
}

if ($form->getValue('type') == 'ucmsubform' || $form->getValue('type') == 'subform')
{
$form->setValue('showonlist', null, 0);
$form->removeField('showonlist');
}
}

if (empty($form))
Expand Down
4 changes: 2 additions & 2 deletions administrator/sql/updates/mysql/1.4.5.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ALTER TABLE `#__tjfields_fields` MODIFY `description` TEXT NOT NULL;


ALTER TABLE `#__tjfields_fields_value` ADD INDEX(`field_id`);
ALTER TABLE `#__tjfields_fields_value` ADD INDEX(`content_id`);

0 comments on commit 176c081

Please sign in to comment.