diff --git a/cosmogramme/php/_init.php b/cosmogramme/php/_init.php index fa880302ab827f4ffd5896d34d9df92bd325333b..1a0df9c8849d14ae1e0eeb123c1575f16158e3f1 100644 --- a/cosmogramme/php/_init.php +++ b/cosmogramme/php/_init.php @@ -1,7 +1,7 @@ <?PHP // Constantes -define("VERSION_COSMOGRAMME","6.42"); -define("PATCH_LEVEL","193"); +define("VERSION_COSMOGRAMME","6.43"); +define("PATCH_LEVEL","194"); define("APPLI","cosmogramme"); define("COSMOPATH", "/var/www/html/vhosts/opac2/www/htdocs"); define("CRLF", chr(13) . chr(10)); diff --git a/cosmogramme/sql/patch/patch_194.php b/cosmogramme/sql/patch/patch_194.php new file mode 100644 index 0000000000000000000000000000000000000000..03af98b9b0b5ddc92656628fb6588ff4f54010eb --- /dev/null +++ b/cosmogramme/sql/patch/patch_194.php @@ -0,0 +1,9 @@ +<?php + +$albums = Class_Album::findAllBy(['where' => 'editeur is not null and editeur != ""']); +foreach($albums as $album) { + $album + ->addEditor($album->getEditeur()) + ->save(); +} +?> \ No newline at end of file diff --git a/library/ZendAfi/Form/Album.php b/library/ZendAfi/Form/Album.php index c242365bd891202a4db6ef3465368cd5409c27c1..6a215d3625e53d5d57c146aece222e8ff9f4cf84 100644 --- a/library/ZendAfi/Form/Album.php +++ b/library/ZendAfi/Form/Album.php @@ -60,7 +60,6 @@ class ZendAfi_Form_Album extends ZendAfi_Form { 'droits_precision', 'annee', 'cote', - 'editeur', 'provenance', 'duration', 'id_langue', @@ -155,9 +154,6 @@ class ZendAfi_Form_Album extends ZendAfi_Form { 'size' => 4, 'maxlength' => 4]) - ->addElement('text', 'editeur', ['label' => 'Editeur', - 'size' => 75]) - ->addElement('text', 'cote', ['label' => 'Cote', 'size' => 20])