Unvalidated attributes in the collectInformation module

Author Message

Guillaume Grasset

Wednesday 03 November 2010 2:59:59 am

Hi !

I try to use the collectinformation module in ez 4.3. Everything is ok when my datas respect the expected status of datatypes : entries are validated, stored in database and user is redirected to content/collectedinfo/form.tpl.

When entries aren't validated, a $unvalidatedAttributes array receive the wrong attribute and I expect I'm able to use this variable in order to warn user for corrections.

Nevertheless, it might be not possible. The "view" module is called and run with a "AttributeValidation" parameter which has this array. In view.php, a $validation receive this $Params['AttributeValidation'] but this variable is unused in this script.

So how can I use this $unvalidatedAttributes variable ? And if I can't, how can I warn my users about his wrong entries ?

Thanks in advance for your answers.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:50:52
Script start
Timing: Jan 30 2025 19:50:52
Module start 'layout'
Timing: Jan 30 2025 19:50:52
Module start 'content'
Timing: Jan 30 2025 19:50:52
Module end 'content'
Timing: Jan 30 2025 19:50:52
Script end

Main resources:

Total runtime0.0254 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.3750151.2422
Module start 'layout' 0.00640.0034 739.6172220.7578
Module start 'content' 0.00980.0137 960.3750993.6484
Module end 'content' 0.02350.0018 1,954.023429.9766
Script end 0.0254  1,984.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.1951140.0002
Check MTime0.00114.3242140.0001
Mysql Total
Database connection0.00093.434010.0009
Mysqli_queries0.00238.884230.0008
Looping result0.00000.043210.0000
Template Total0.00124.710.0012
Template load0.00093.591810.0009
Template processing0.00031.087410.0003
Override
Cache load0.00062.525010.0006
General
dbfile0.00166.299080.0002
String conversion0.00000.022540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs