203 Posts
louispapera
8 years ago
3
Topic

Sebloders Hello, I have a big problem and ask for help to all. 

I created a form that must be updated by 2 users. 

First user must insert 6 fields, the second user must enter two fields. 

First user inserts and updates all fields without any problems. 

The second user when entering his fields and records, without the possibility to change the fields of the first user, the fields are "read only", delete some fields or change them into value. 

I.E .: 

user1 - insert: 

State: Italy 

Region: Sicily 

Name: Louis 

Date of Birth: 20-25-1980 

Work: Employee 

Freshman: 123 

.............................................. 

User 2 - adds the additional data records 

Years of service: 33 

hire date: 10/04/1955 

when the second user sends the data we will have: 

State: Italy 

Region: Sicily 

Name: Louis 

Date of Birth: EMPTY 

Work: Employee 

Freshman: 123123 (double value) 

Years of service: 33 

hire date: EMPTY 

.......................................................

if the second user enters the data again we will have: 

State: Italy 

Region: Sicily 

Name: Louis 

Date of Birth: ALWAYS EMPTY 

Work: Employee 

Freshman: 123123123 (triple value) 

Years of service: 33 

hire date: ALWAYS EMPTY 

To make this work I have used the ACL plugin and restrictions usergroup ...... unfortunately I do not understand why eliminates some data (calendar date) and has several times more data in addition (Freshman). 

Any ideas and suggestions for this strange problem? Thanks, Louis

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
2
Level 1

Hi,

you choose the correct approach, with calendar fields try if this helps: https://github.com/Octopoos/SEBLOD/pull/199

For freshman it seems that you put some conditionals, live value or computation on it - also check the storage if it the same as in other fields.

203 Posts
louispapera
8 years ago
1
Level 2

Many Thanks Klas, about the freshman field you were right I'd forgotten something and was not working. 

About calendar I visited the post on github and I saw that my content on CCK_FieldPrepareStore is a little different from what I've downloaded, so I do not solve the problem by adding some "$ field-> text ". Rather I could worsen the thing. 

The alternative would be completely replace the contents of my calendar with the downloaded one and try. What do you think about it ? 

Sincerely, Louis

4229 Posts
Kadministrator
8 years ago
0
Level 3

Hi,

yes, completely replace calendar field with new one. Ofcourse make a backup copy first so you can revert if it does not work for you.

Get a Book for SEBLOD