Forums / Developer / bug in enhancedobjectrelation

bug in enhancedobjectrelation

Author Message

Mazen Alsibai

Tuesday 09 August 2005 5:03:53 am

when i used enhancedobjectrelation i noticed the following:
after pressing create new and the fileds of the related class appear,the problem arises when yuo click refresh bottom sicne 3 or 4 copies of the fields of thar class are inserted beow the first one
so can you help me please???

Gabriel Ambuehl

Tuesday 09 August 2005 5:23:48 am

I'm not entirely sure why you click the refresh button in your browser, that's generally a rather bad idea while editing something.

However, there's been a very similar bug that was fixed a few days ago. So if in doubt, use the enhancedobjectrelation from pubsvn.

Visit http://triligon.org

Mazen Alsibai

Tuesday 09 August 2005 6:18:42 am

i see, but consider the following:
I'm using enhancedobjectrelation to a Resume class. I want to relate a resume object to other Skills objects; so that the user will be able to create new skill objects when he fills his resume.
Now, I tried to fill a resume and create new skill in it. at this stage, everything is ok.
after that, if I try to add a new resume, when i press the Create New Skill button, it shows me two skill objects to fill.
At the third resume, the Create New Skill, shows me 3 skill objects to fill.

What do you think about this problem? is it a normal behaviour?

Gabriel Ambuehl

Tuesday 09 August 2005 11:17:48 am

That exact bug got fixed in the pubsvn version (possibly Xavier already updated the contrib section, I don't know).

Behavior on reload, however, is undefined from what I know. So don't hit reload ;)

I'll look into reload some time this week.

Visit http://triligon.org

Mazen Alsibai

Tuesday 09 August 2005 12:57:38 pm

i see,now i am in such a need for this fixed version,so where
can i get it?
can you send it to me?

Gabriel Ambuehl

Tuesday 09 August 2005 2:58:43 pm

Try this http://pubsvn.ez.no/community/trunk/extension/enhancedobjectrelation/enhancedobjectrelation-pubsvn.tar.gz

It might or might not work, if not, I suggest you read up on using SVN ;)

Visit http://triligon.org

Mazen Alsibai

Wednesday 10 August 2005 1:40:47 am

thank you very much,it sounds good,the bug is fixed,except for the reload behaiviour which is not a big problem .

Mazen Alsibai

Wednesday 10 August 2005 2:20:09 am

oh,another problem,my class consists of other one, i want to display the fields of each one on a separate page to be filled by the user,not on one page,so how can i divide the attributes of my class so that each group of fields appear on a different page
many thanks

Gabriel Ambuehl

Wednesday 10 August 2005 4:02:07 am

I doubt you can do that so easily. There's recently been a thread about it but I don't think it's easy at all.

Visit http://triligon.org

Mazen Alsibai

Wednesday 10 August 2005 5:12:01 am

i am working on it using draft feature,it is imazing,it works when your class consists of just a lot of fields,but in my case ,the class conisists of some fields and 2 links to other objects,and that is why it is very difficult

Mazen Alsibai

Wednesday 10 August 2005 6:44:41 am

how to reach to the fields of the related class??

eZ debug

Timing: Jan 20 2025 08:57:02
Script start
Timing: Jan 20 2025 08:57:02
Module start 'content'
Timing: Jan 20 2025 08:57:02
Module end 'content'
Timing: Jan 20 2025 08:57:02
Script end

Main resources:

Total runtime0.0210 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.9531180.8359
Module start 'content' 0.00620.0073 769.7891101.7578
Module end 'content' 0.01350.0074 871.546978.7031
Script end 0.0209  950.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.6002120.0002
Check MTime0.00115.1665120.0001
Mysql Total
Database connection0.00083.597910.0008
Mysqli_queries0.002712.775340.0007
Looping result0.00000.138820.0000
Template Total0.007033.410.0070
Template load0.00104.542010.0010
Template processing0.006028.807210.0060
Override
Cache load0.00073.196410.0007
General
dbfile0.003817.9680100.0004
String conversion0.00000.038730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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