Skip to content

Commit

Permalink
[com_fields] - Creating a New field give SQL error on postgresql
Browse files Browse the repository at this point in the history
Postgres: Inserting an image field fails with an error #13137
  • Loading branch information
alikon committed Dec 10, 2016
1 parent f621f08 commit d61786e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion administrator/components/com_fields/tables/field.php
Expand Up @@ -137,6 +137,11 @@ public function check()
}
}

if (empty($this->group_id))
{
$this->group_id = 0;
}

return true;
}

Expand Down Expand Up @@ -177,7 +182,7 @@ protected function _getAssetTitle()
* Method to get the parent asset under which to register this one.
* By default, all assets are registered to the ROOT node with ID,
* which will default to 1 if none exists.
* The extended class can define a table and id to lookup. If the
* The extended class can define a table and id to lookup. If the
* asset does not exist it will be created.
*
* @param JTable $table A JTable object for the asset parent.
Expand Down

0 comments on commit d61786e

Please sign in to comment.