Commit 76a4362b authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Fix: activer désactiver les types de documents Redmine #65426

parent 9fdc89c0
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@
          </div>

          <div class="form-group">
            <label for="typedoc_default">
            <label for="typedoc_active">
              Actif
              <input id='typedoc_default' type="checkbox" class="form-control" v-model="form.active" name="default"/>
              <input id='typedoc_active' type="checkbox" class="form-control" v-model="form.active" name="active"/>
            </label>
          </div>

@@ -192,7 +192,8 @@ export default {
          'label': this.form.label,
          'signatureflow_id': this.form.signatureflow_id,
          'description': this.form.description,
          'default': this.form.default ? 'on' : ''
          'default': this.form.default ? 'on' : '',
          'active': this.form.active ? 'on' : ''
        };

        axios.put(this.url + "", json).then(
@@ -213,6 +214,7 @@ export default {
        datas.append('label', this.form.label);
        datas.append('description', this.form.description);
        datas.append('default', this.form.default ? 'on' : '');
        datas.append('active', this.form.active ? 'on' : '');

        axios.post(this.url, datas).then(
            (res) => {