Skip to content

Commit

Permalink
Set default 0 to access_url_locked see #7919
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Oct 27, 2015
1 parent b61dfb0 commit 360edb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/Migrations/AbstractMigrationChamilo.php
Expand Up @@ -100,7 +100,6 @@ public function addSettingCurrent(
->setAccessUrlLocked($accessUrlLocked);

$this->getEntityManager()->persist($setting);
//$this->getEntityManager()->flush();

if (count($options) > 0) {
foreach ($options as $option) {
Expand Down
5 changes: 2 additions & 3 deletions src/Chamilo/CoreBundle/Entity/SettingsCurrent.php
Expand Up @@ -102,11 +102,10 @@ class SettingsCurrent
/**
* @var integer
*
* @ORM\Column(name="access_url_locked", type="integer", nullable=false)
* @ORM\Column(name="access_url_locked", type="integer", nullable=false, options={"default": 0 } )
*/
private $accessUrlLocked;


/**
* Set variable
*
Expand Down Expand Up @@ -380,7 +379,7 @@ public function getAccessUrlChangeable()
*/
public function setAccessUrlLocked($accessUrlLocked)
{
$this->accessUrlLocked = $accessUrlLocked;
$this->accessUrlLocked = intval($accessUrlLocked);

return $this;
}
Expand Down

0 comments on commit 360edb5

Please sign in to comment.