Skip to content
Snippets Groups Projects
Commit 45788f97 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

hotline#197605 : Fix activities registration when there is a title

from settings
parent 39504029
Branches
Tags
1 merge request!4955hotline#197605 : Fix activities registration when there is a title
Pipeline #31700 passed with stage
in 20 minutes and 20 seconds
- correctif #197605 : Corrige une erreur 500 sur l'inscription aux activités
\ No newline at end of file
......@@ -129,7 +129,7 @@ abstract class Intonation_Library_View_Wrapper_RichContent_Section {
return $settings->$data_name();
});
return $title
return ($title && $this->getWrapper())
? sprintf($title, $this->getWrapper()->getMainTitle())
: $this->getTitle();
}
......
......@@ -333,6 +333,13 @@ class ActivitiesWithQueueAbonneIntonationWithQuotasFullInQueueValdationViewTest
'queue' => true,
'created_at' => '2021-04-01 14:00:00'
]);
$conf = (new Class_Systeme_Widget_Action)
->setId('abonne_fiche')
->setProfileId(23)
->set('PolygoneLabelUserAgenda', 'Agenda')
->load();
Class_SessionActivity::find(35)
->addSessionActivityInscription($this->_inscription)
->assertSave();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment