Switching widgets removed data from first widget

Posted on 2013-01-04
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?

Question by:Modifier1000
  • 3
  • 3
LVL 16

Expert Comment

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?

Author Comment

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.
LVL 16

Expert Comment

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.
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.


Author Comment

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.
LVL 16

Accepted Solution

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?

Author Closing Comment

ID: 38774591
~1000 nodes.


Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

18 Experts available now in Live!

Get 1:1 Help Now