[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 75/119: Fix : by default new contact options
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 75/119: Fix : by default new contact options were not added to document_type |
Date: |
Mon, 26 Oct 2020 18:27:27 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit fb60db4018aebfbeb4413665b5445c8dc8aae4bb
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Oct 11 10:24:31 2020 +0200
Fix : by default new contact options were not added to document_type
---
include/class/action_document_type_mtable.class.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/class/action_document_type_mtable.class.php
b/include/class/action_document_type_mtable.class.php
index 03a7d2d..f02f56d 100644
--- a/include/class/action_document_type_mtable.class.php
+++ b/include/class/action_document_type_mtable.class.php
@@ -168,6 +168,18 @@ class Action_Document_Type_MTable extends Manage_Table_SQL
// Detail option contact
$table=$this->get_table();
$cn=$table->cn;
+ // insert new contact options
+ $cn->exec_sql("insert into jnt_document_option_contact
(jdoc_enable,document_type_id,
+ contact_option_ref_id)
+ select 0 , $1, cor_id
+ from contact_option_ref
+ where
+ cor_id not in (select cor_id from
+ jnt_document_option_contact a
+ where
a.document_type_id=$1)",[$table->dt_id]);
+
+ // Select all
+
$aOption=$cn->get_array("select
cor_id,cor_label,cor_type,document_type_id ,coalesce(jdoc_enable,0) jdoc_enable
from
contact_option_ref cor
- [Noalyss-commit] [noalyss] 36/119: javascript : add function to concat 2 json objects, (continued)
- [Noalyss-commit] [noalyss] 36/119: javascript : add function to concat 2 json objects, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 32/119: Bug : syntax error, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 31/119: Bug : use ilike instead of tilde, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 46/119: Follow-up : tag enable when create doc, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 48/119: Action and Document Add missing files, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 57/119: Upgrade DB to 145, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 54/119: Contact option , allow to use option for contact, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 70/119: Card can be disable if not used anymore, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 73/119: Contact option : export CSV, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 67/119: Link between contact option and document, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 75/119: Fix : by default new contact options were not added to document_type,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 63/119: Bug #1839 : : accentuated character broken, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 76/119: Add : upgrade scrip added, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 24/119: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 25/119: erge branch 'dev-7400-7500', Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 33/119: doc, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 41/119: Rewriting of Predefined Operation. You can add new Predefined Operation, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 51/119: Add group of tag to an action, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 59/119: prevent divide by zero in formula, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 65/119: Rewriting of card attributes, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 69/119: Improve Input_Switch , do not echo but returns string, Dany De Bontridder, 2020/10/26