Project

General

Profile

Bug #11359

erreur sql sur duplication d'un champ "fichier"

Added by Frédéric Péters (de retour le 10/10) over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
15 June 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

  • créer un formulaire
  • ajouter un champ de type fichier
  • cliquer sur "dupliquer"
Exception:
  type = '<class 'psycopg2.ProgrammingError'>', value = 'ERREUR:  la colonne  f2  de la relation  formdata_154_wwww  existe dj
'

Stack trace (most recent call first):
  File "/home/fred/src/eo/wcs/wcs/sql.py", line 391, in do_formdef_tables
   389                                     table_name,
   390                                     'f%s' % field.id,
>  391                                     sql_type))
   392         if field.store_display_value:
   393             needed_fields.add('f%s_display' % field.id)

  locals: 
     sql_type = 'bytea'
     cur = <cursor object at 0x7f4d76940bf0; closed: 0>
     existing_fields = set(['status', 'f1', 'fts', 'workflow_roles', 'user_id', 'concerned_roles_array', 'criticality_level', 'submission_context', 'actions_roles_array', 'f1_structured', 'tracking_code', 'workflow_roles_array', 'receipt_time', 'anonymised', 'id_display', 'submission_channel', 'backoffice_submission', 'workflow_data', 'id', 'page_no', 'user_hash'])
     formdef = <FormDef 'wwww' id:154>
     rebuild_views = True
     field = <wcs.fields.FileField object at 0x7f4d73411310>
     needed_fields = set(['status', 'fts', 'workflow_roles', 'user_id', 'concerned_roles_array', 'submission_context', 'anonymised', 'f2_structured', 'f2', 'tracking_code', 'workflow_roles_array', 'receipt_time', 'user_hash', 'id_display', 'submission_channel', 'backoffice_submission', 'actions_roles_array', 'criticality_level', 'id', 'page_no', 'workflow_data'])
     own_conn = True
     rebuild_global_views = True
     x = ('f1_structured',)
     table_name = 'formdata_154_wwww'
     conn = <connection object at 0x7f4d732b2050; dsn: 'dbname=auquo', closed: 0>

Files

0001-admin-fix-duplication-of-fields-11359.patch (2.12 KB) 0001-admin-fix-duplication-of-fields-11359.patch Frédéric Péters (de retour le 10/10), 15 June 2016 11:20 AM

Associated revisions

Revision 5c100ef6 (diff)
Added by Frédéric Péters (de retour le 10/10) over 6 years ago

admin: fix duplication of fields (#11359)

History

#1

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

#2

Updated by Thomas Noël over 6 years ago

Ack

#3

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

  • Status changed from En cours to Résolu (à déployer)
commit 5c100ef60fffc46fe0876cb4dc6f54d7c99cf95b
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Jun 15 11:15:48 2016 +0200

    admin: fix duplication of fields (#11359)
#6

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

  • Target version set to v1.46
#7

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF