Skip to content

Commit

Permalink
Added language and id for COM_FABRIK_ELEMENT_PARAMS_TOO_BIG
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Nov 5, 2016
1 parent 587e03c commit 189363b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/com_fabrik/language/en-GB/en-GB.com_fabrik.ini
Expand Up @@ -186,3 +186,6 @@ COM_FABRIK_FIELD_APPLY_BUTTON_LABEL_DEFAULT="Apply"
COM_FABRIK_FIELD_GO_BACK_BUTTON_LABEL_DEFAULT="Go back"
COM_FABRIK_FIELD_DELETE_BUTTON_LABEL_DEFAULT="Delete"
COM_FABRIK_FIELD_RESET_BUTTON_LABEL_DEFAULT="Reset"

; 3.5
COM_FABRIK_ELEMENT_PARAMS_TOO_BIG="Element params too big to save, probably calculation data, for element ID %s"
2 changes: 1 addition & 1 deletion components/com_fabrik/models/element.php
Expand Up @@ -6194,7 +6194,7 @@ public function storeAttribs()

if (strlen($element->params) > 65535)
{
throw new RuntimeException('Element params too big to save, probably calculation data');
throw new RuntimeException(sprintf(FText::_('COM_FABRIK_ELEMENT_PARAMS_TOO_BIG'), $this->getId()));
}

$query = $db->getQuery(true);
Expand Down

0 comments on commit 189363b

Please sign in to comment.