View Issue Details

IDProjectCategoryView StatusLast Update
0001177NOALYSSBugpublic2015-11-10 17:10
Reporteryanntemp Assigned Todanydb  
PrioritynormaleSeveritymineurReproducibilitytoujours
Status ferméResolutioncorrigé 
Target Version6.9.1Fixed in Version6.9.1 
Summary0001177: Problème quickcode avec caractères exotiques
DescriptionEn créant une nouvelle fiche, les caractères non autorisés pour le quickcode disparaissent automatiquement, normalement.
Je viens de créer une fiche avec des "()" et un "'" dans le quickcode et, après avoir sauver, ils ne disparaissent pas.
Jusque là, c'est plutôt bien.
Sauf que, dans la liste des fiches, si je clique sur la nouvelle fiche, elle ne s'ouvre pas.
Je ne peux que l'effacer.
De plus, quand je vais dans gestion --> administrateur (c'est une fiche employé) et que j'inclue les fiches sans opérations (puisque je viens de la créer), ça bug ainsi:

#0 /var/www/noalyss/include/class_fiche.php(1476): Database->exec_sql('select sum(deb)...')
#1 /var/www/noalyss/include/class_fiche.php(1614): Fiche->get_solde_detail(' j_tech_per in...')
#2 /var/www/noalyss/include/manager.inc.php(120): Fiche->Summary('', 'manager', '', false)
0000003 /var/www/noalyss/include/ac_common.php(1071): require_once('/var/www/noalys...')
0000004 /var/www/noalyss/html/do.php(249): show_menu('806')
0000005 {main}


Voilà.
Il faudrait soit étendre l'effacement automatique à tous les caractères non autorisés, soit les autoriser.


Bonne journée.
Steps To ReproduceCrée une fiche depuis n'importe où (CARD, Achat, Vente , ...)
Double cliquer sur la fiche
Modifier son quick_code

Une erreur se produit

Additional InformationErreur dans log apache
-----------------------
Message d'erreur
================
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 1. {main}() /developpement/noalyss/html/ajax_card.php:0, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 2. Fiche->update($p_array = array ('gDossier' => '10062', 'f_id' => '22', 'ctl' => 'card_2', 'av_text1' => 'UN FOURNISSEUR TR\xc3\x88S DIVERS', 'av_text12' => '', 'av_text5' => '440000', 'av_text13' => '', 'av_text14' => '', 'av_text15' => '', 'av_text24' => '', 'av_text16' => '', 'av_text17' => '', 'av_text18' => '', 'av_text23' => 'UNFOURNISSEURTRESDIVERS2', 'save' => 'Sauver', 1 => 'Historique', 'op' => 'upc')) /noalyss/html/ajax_card.php:567, referer: http://localhost/developpement/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 3. Database->exec_sql($p_string = 'select update_quick_code(385,\\'UNFOURNISSEURTRESDIVERS2\\')', $p_array = *uninitialized*) /noalyss/include/class_fiche.php:912, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP Exception: SQL ERROR select update_quick_code(385,'UNFOURNISSEURTRESDIVERS2') ERROR: La fiche dont le quick code est UNFOURNISSEURTRESDIVERS2 n'existe pas\nCONTEXT: SQL statement "update jrnx set j_qcode=NEW.ad_value where j_qcode = OLD.ad_value"\nPL/pgSQL function "fiche_detail_qcode_upd" line 7 at SQL statement\nSQL statement "update fiche_detail set ad_value = tText where jft_id=njft_id"\nPL/pgSQL function "update_quick_code" line 47 at SQL statement in /noalyss/include/class_database.php on line 166, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 1. {main}() /noalyss/html/ajax_card.php:0, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 2. Fiche->update($p_array = array ('gDossier' => '10062', 'f_id' => '22', 'ctl' => 'card_2', 'av_text1' => 'UN FOURNISSEUR TR\xc3\x88S DIVERS', 'av_text12' => '', 'av_text5' => '440000', 'av_text13' => '', 'av_text14' => '', 'av_text15' => '', 'av_text24' => '', 'av_text16' => '', 'av_text17' => '', 'av_text18' => '', 'av_text23' => 'UNFOURNISSEURTRESDIVERS2', 'save' => 'Sauver', 1 => 'Historique', 'op' => 'upc')) /noalyss/html/ajax_card.php:567, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
[Wed Oct 07 09:37:16 2015] [error] [client 127.0.0.1] PHP 3. Database->exec_sql($p_string = 'select update_quick_code(385,\\'UNFOURNISSEURTRESDIVERS2\\')', $p_array = *uninitialized*) /noalyss/include/class_fiche.php:912, referer: http://localhost/noalyss/html/do.php?gDossier=10062&ledger_type=ALL&ac=COMPTA%2FHIST&nb_jrn=0&date_start=01.01.2015&date_end=31.12.2015&date_paid_start=&date_paid_end=&desc=&amount_min=0&amount_max=0&qcode=&accounting=&search=Rechercher&ac=COMPTA%2FHIST
TagsNo tags attached.
Extension Noalyss

Activities

yanntemp

2015-09-28 12:55

developer   ~0002963

Quand j'essaye de changer le quickcode d'une fiche qui existe déjà, ça affiche ceci dans le cadre de la fiche:

SQL ERROR select update_quick_code(2395,'BOZZADAVIDE-ART17') ERROR: La fiche dont le quick code est BOZZADAVIDE-ART17 n'existe pas CONTEXT: SQL statement "update jrnx set j_qcode=NEW.ad_value where j_qcode = OLD.ad_value" PL/pgSQL function "fiche_detail_qcode_upd" line 7 at SQL statement SQL statement "update fiche_detail set ad_value = tText where jft_id=njft_id" PL/pgSQL function "update_quick_code" line 47 at SQL statement

Il me dit que la fiche avec le nouveau quickcode n'existe pas (ce que je veux bien entendre, puisque j'essaye justement de la créer...).
Ici, tentative de changer "BOZZADAVIDE" en "BOZZADAVIDE-ART17".

danydb

2015-09-28 16:13

administrator   ~0002964

bonjour,

Peux-tu confirmer qu'il s'agit bien de la version 6.9 , la dernière version sur http://download.noalyss.eu ?

Merci d'avance

D

yanntemp

2015-09-28 18:40

developer   ~0002965

Salut.

Oui.
Je viens de l'installer sur cette machine aujourd'hui même.
D'ailleurs, avec la version précédente, je n'ai jamais rencontré ce problème; les caractères exotiques disparaissait.

Ici, c'est en tous cas avec l'apostrophe.
Je n'ai pas essayé avec d'autres.
Lesquels ne sont pas admis pour le quickcode? Comme ça, j'essayerai aussi avec d'autres.

Très bonne soirée.

danydb

2015-09-28 19:08

administrator   ~0002966

Le soucis est que je ne suis pas arrivé à reproduire le problème sur la dernière version

yanntemp

2015-10-05 09:42

developer   ~0002967

En tous cas, je rencontre le problème sur les deux machines que j'utilise et dans tous les dossiers.

Je vais dans une liste de fiches, j'en ouvre une, je change son "quickcode", et quand je sauve le message ci-dessus apparaît en rouge. Je ne peux que la refermer et rien n'a changé.

Si ça ne se produit pas chez toi, c'est encore plus inquiétant en ce qui me concerne. (C'est comme cette histoire de disparition du menu "moyen de paiement"...)

Bien à toi.


y

danydb

2015-10-07 10:25

administrator   ~0002969

Problème avec la contrainte FK sur jrnx

danydb

2015-11-10 17:08

administrator   ~0003062

Done

Issue History

Date Modified Username Field Change
2015-09-28 12:36 yanntemp New Issue
2015-09-28 12:55 yanntemp Note Added: 0002963
2015-09-28 16:13 danydb Note Added: 0002964
2015-09-28 18:40 yanntemp Note Added: 0002965
2015-09-28 19:08 danydb Note Added: 0002966
2015-10-05 09:42 yanntemp Note Added: 0002967
2015-10-07 10:24 danydb Steps to Reproduce Updated
2015-10-07 10:24 danydb Additional Information Updated
2015-10-07 10:25 danydb Note Added: 0002969
2015-10-07 10:25 danydb Assigned To => danydb
2015-10-07 10:25 danydb Status new => acknowledged
2015-10-07 10:28 danydb
2015-10-20 17:55 danydb Status acknowledged => resolved
2015-10-20 17:55 danydb Fixed in Version => Next Release
2015-10-20 17:55 danydb Resolution open => fixed
2015-11-05 11:46 danydb Target Version => Next Release
2015-11-10 17:02 danydb Target Version Next Release => 6.9.1
2015-11-10 17:02 danydb Fixed in Version Next Release => 6.9.1
2015-11-10 17:06 danydb Status resolved => closed
2015-11-10 17:08 danydb Status closed => resolved
2015-11-10 17:08 danydb Note Added: 0003062
2015-11-10 17:09 danydb Status resolved => assigned
2015-11-10 17:09 danydb Status assigned => resolved
2015-11-10 17:10 danydb Status resolved => closed