Solved

Switching widgets removed data from first widget

Posted on 2013-01-04
6
195 Views
Last Modified: 2013-01-14
Hey all,

I have a Drupal 7 application with custom content types that had some select lists using Entity References.  Our editors created new content with the custom type and selected multiple entries from the select list (ctrl+click).

Well, I decided to instead use the Auto-complete, because it was faster for the editors to use.  Now when the editors visit previously developed content, the selections they used before the widget change are no longer linked to the content.

I did not remove/delete the select list widget, I just merely changed it to Auto-complete.

Any ideas on what happened and if I'll be able to get those other linked items back?

Thanks.
0
Comment
Question by:Modifier1000
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38746279
Few questions not as potential solution but just for a  better understanding:
Are the widgets custom ones as the content type. If so, please let us see the code.
Does the auto complete work with new content?
If switched back to select list, do the old content come back?
Have you checked your database for the existing data?
0
 

Author Comment

by:Modifier1000
ID: 38755051
Not a custom widget.
Yes, Autocomplete does work with new content.
Switching does not bring back old data.
Have not checked DB, but will when I get back into town.

I cannot repeat the issue, but 3 editors have complained that their data is no longer available once I switched to the Drupal Autocomplete from the Drupal Select List.
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 38755120
Switching does not bring back old data.

My guess is that there was no data there before the switch!
You can easily test it:
1. Add new content, and make sure you have data in the those entity reference fields.
2. Switch widgets, back and forth, and see for yourself whether the data remains or vanishes.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Modifier1000
ID: 38756708
Yeah, I had already tried the 'test' and all worked well.

I also think that the data was not in there, but I have 3 very upset editors who are sure there was data before the switch.

If it were one, I would say it was their fault, but being 3 is raising a red flag with me.  I cannot find any place on the internet that has the same issues either.  I really want to say it's 'User Error', but I just wanted to make sure I am not leaving any stone unturned before I conclude they were at fault.
0
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 38756913
Well, if you find more stones, turn them, but I'm quite confident that it's a user error,
How many nodes supposed to be affected?
0
 

Author Closing Comment

by:Modifier1000
ID: 38774591
~1000 nodes.

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Publishing Workflow in Drupal ? 4 255
Turn off ligature in Drupal page title 3 328
Angular and Drupal 3 140
How to use PHP isset and foreach? 1 84
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now