Set default 0 to access_url_locked see #7919

1.10.x
Julio 10 years ago
parent b61dfb0ece
commit 360edb5edb
  1. 1
      app/Migrations/AbstractMigrationChamilo.php
  2. 5
      src/Chamilo/CoreBundle/Entity/SettingsCurrent.php

@ -100,7 +100,6 @@ abstract class AbstractMigrationChamilo extends AbstractMigration
->setAccessUrlLocked($accessUrlLocked);
$this->getEntityManager()->persist($setting);
//$this->getEntityManager()->flush();
if (count($options) > 0) {
foreach ($options as $option) {

@ -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
*
@ -380,7 +379,7 @@ class SettingsCurrent
*/
public function setAccessUrlLocked($accessUrlLocked)
{
$this->accessUrlLocked = $accessUrlLocked;
$this->accessUrlLocked = intval($accessUrlLocked);
return $this;
}

Loading…
Cancel
Save