translation and user account data type

Author Message

Mirko Battisti

Wednesday 13 April 2011 2:31:48 am

Hello everybody.

I've created a content class that contains a "user account" attribute, marked as "required".

I've created (in the main language) the content object based on that class with no problems.

Then I tried a new translation based on the main language for that object. The user account is not changable (and cannot be translated), which does make sense. I translate other attributes, try to save, and the system complains that the attribute "user account" is required, so it cannot save the object.

Since the user account data type cannot be translated, I would expect the new object to just keep the reference to the main language user account attribute. Am I wrong?

Any idea on why it fails?

Thanks in advance,

Mirko.

Mirko Battisti

Friday 15 April 2011 12:04:35 am

Hello.

I found an issue on the issue tracker I didn't find before writing my post.
The problem only occurs in eZP4.3.0 (and earlier I guess?).

There's a solution explained here:

http://issues.ez.no/IssueView.php?Id=15898

We've solved the problem with the ezusertype.diff file posted by Carlos.

Thanks!

Mirko.

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 00:13:40
Script start
Timing: Jan 30 2025 00:13:40
Module start 'layout'
Timing: Jan 30 2025 00:13:40
Module start 'content'
Timing: Jan 30 2025 00:13:40
Module end 'content'
Timing: Jan 30 2025 00:13:40
Script end

Main resources:

Total runtime0.0145 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1484151.2109
Module start 'layout' 0.00510.0024 739.359436.6563
Module start 'content' 0.00750.0058 776.015690.0313
Module end 'content' 0.01330.0012 866.046929.9766
Script end 0.0144  896.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002013.8654140.0001
Check MTime0.00106.8956140.0001
Mysql Total
Database connection0.00064.474010.0006
Mysqli_queries0.003322.925430.0011
Looping result0.00000.062610.0000
Template Total0.00085.510.0008
Template load0.00064.411310.0006
Template processing0.00021.092910.0002
Override
Cache load0.00053.166710.0005
General
dbfile0.002416.781580.0003
String conversion0.00000.049540.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