Skip to content
Snippets Groups Projects
Commit 2650c29f authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#88484_js_stat_variable_non_prise_en_compte_' into 'hotline'

hotline #88484 fix fatal error in function getVar()

See merge request !3060
parents 24243597 0555574c
Branches
Tags
3 merge requests!3297WIP: Master,!3067Hotline,!3060hotline #88484 fix fatal error in function getVar()
Pipeline #6575 failed with stage
in 35 minutes and 2 seconds
- ticket #88484 : Administration : correction de la prise en charge de la variable JS STAT.
\ No newline at end of file
......@@ -23,7 +23,7 @@
* ne pas supprimer à moins de faire le tour de toutes les skins
*/
function getVar($cle) {
return Class_AdminVar::get($clef);
return Class_AdminVar::get($cle);
}
......
......@@ -168,4 +168,12 @@ class AdminVarWorkflowTest extends ModelTestCase {
}
}
?>
\ No newline at end of file
class AdminVarFromGetVarTest extends ModelTestCase {
/** @test */
public function jsStatShouldBeRender() {
Class_AdminVar::set('JS_STAT', 'Hello script !');
$this->assertEquals('Hello script !', getVar('JS_STAT'));
}
}
\ No newline at end of file
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