Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PostgreSQL - error installing a module
#### Steps to reproduce the issue
go to the Extension manager and upload a module 

#### Expected result
the module is installed

#### Actual result 
SQL ERROR not null constraint violation #__assets field rules


#### System information
PostgreSQL 9.3.5
Joomla 3.4.1

#### Additional comments
added a sanity check for NOT NULL FIELD rules
  • Loading branch information
alikon committed Mar 22, 2015
1 parent 8f2e282 commit 86b7c4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/joomla/table/asset.php
Expand Up @@ -119,6 +119,10 @@ public function check()

return false;
}
if (empty($this->rules))
{
$this->rules='{}',
}
}

return true;
Expand Down

0 comments on commit 86b7c4b

Please sign in to comment.