Commit 9f753210 authored by Mathieu Giraud's avatar Mathieu Giraud

js/model.js: fix system_available inside toggle_system(true)

Fix e9864cd4. The previous affectation was not cloning the system_selected array,
giving strange things at the next change of system_selected.
This bug surfaced only recently: a52634a2 uses toggle_system(true).
parent 6ca94b34
......@@ -512,7 +512,7 @@ Model.prototype = {
* */
toggle_all_systems: function(is_on) {
if (is_on) {
this.system_selected = this.system_available
this.system_selected = this.system_available.slice()
} else {
this.system_selected = []
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment