Agenda focntion d'ajout add et non creation

This commit is contained in:
Fred Tempez 2024-08-29 18:13:11 +02:00
parent daec8d9ead
commit d91c270368
3 changed files with 6 additions and 8 deletions

View File

@ -21,7 +21,7 @@
class agenda extends common {
public static $actions = [
'creation' => self::GROUP_VISITOR,
'add' => self::GROUP_VISITOR,
'edition' => self::GROUP_VISITOR,
'config' => self::GROUP_MODERATOR,
'categories' => self::GROUP_MODERATOR,
@ -520,7 +520,7 @@ class agenda extends common {
/**
* Création
*/
public function creation() {
public function add() {
// Soumission du formulaire
if($this->isPost()) {
@ -574,7 +574,7 @@ class agenda extends common {
else{
$this->addOutput([
'notification' => 'La date de fin précède la date de début !',
'view' => 'creation',
'view' => 'add',
'state' => false
]);
}
@ -656,7 +656,7 @@ class agenda extends common {
$this->addOutput([
'showBarEditButton' => true,
'showPageContent' => false,
'view' => 'creation'
'view' => 'add'
]);
}
}
@ -779,8 +779,6 @@ class agenda extends common {
// Mise à jour des données de module
$this->update();
var_dump($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD'));
//Pour récupération des données ajax jquery date ou id
$url = $_SERVER['REQUEST_URI'];
if (strpos($url,'/da:') !== false){
@ -788,7 +786,7 @@ class agenda extends common {
$dateclic = $this->vue_debut($url,'/da:');
self::$datecreation = $dateclic;
//Vers la création d'un évènement
$this->creation();
$this->add();
}
else{
if (strpos($url,'/id:') !== false){