From 6b033580c9fb06457a38c4b36f55aabe7364abc0 Mon Sep 17 00:00:00 2001 From: alban Date: Tue, 16 Sep 2014 18:40:50 +0200 Subject: [PATCH] [fix] chmod action requiring a SQL change + lost action global reference in m_bro --- bureau/class/m_bro.php | 2 +- install/upgrades/3.3.1.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 install/upgrades/3.3.1.sql diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index a90e961b..ca0c576e 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -556,7 +556,7 @@ class m_bro { * @return boolean TRUE Si les fichiers ont t renomms, FALSE si une erreur s'est produite. */ function ChangePermissions($R,$d,$perm,$verbose=false) { - global $err; + global $err, $action; $absolute=$this->convertabsolute($R,false); if (!$absolute) { $err->raise("bro",_("File or folder name is incorrect")); diff --git a/install/upgrades/3.3.1.sql b/install/upgrades/3.3.1.sql new file mode 100644 index 00000000..f0a82698 --- /dev/null +++ b/install/upgrades/3.3.1.sql @@ -0,0 +1,2 @@ +ALTER TABLE `actions` CHANGE `type` `type` ENUM('CREATE_FILE','FIX_USER','CREATE_DIR','DELETE','MOVE','FIX_DIR','FIX_FILE','CHMOD') DEFAULT NULL ; +