Commit 6f918935 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Merge master

parents 787d517b 9a83da7f
Loading
Loading
Loading
Loading
+3 −0
Changes for config/autoload/local.php.dist: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -193,8 +193,11 @@ return array(
               /****/
            ]
        ],

        /*** Notifications ***/
        'notifications' => [
            // L'utilisateur peut configurer la fréquence des notifications
            'override' => false,

            // Envoi automatique
            'fixed' => ['Mer8', 'Lun20'] // ex: IMPOSE une notification chaque mercredis à 8 heure et Lundis à 20 heures
+3 −0
Changes for doc/notifications.md: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@ L'option **fixed** permet de configurer des envois imposés sous la forme d'un t
return [
    'oscar' => [
        /*** Notifications ***/
        // L'utilisateur peut configurer la fréquence des notifications
        'override' => false,
        
        'notifications' => [
            // Envoi automatique
            'fixed' => ['Mer8'] // ex: IMPOSE une notification chaque mercredis à 8 heures
+1 −2
Changes for module/Oscar/src/Oscar/Service/UserParametersService.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -56,8 +56,7 @@ class UserParametersService implements ServiceLocatorAwareInterface, EntityManag

    public function performChangeFrequency( $userInput )
    {
        $changeable = $this->getConfiguration('oscar.notifications.override', false);
        if( !$changeable ){
        if( !$this->getConfiguration('oscar.notifications.override', false) ){
            throw new OscarException(_('Cette option ne peut pas être modifiée'));
        }