Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Switching widgets removed data from first widget

Posted on 2013-01-04
6
Medium Priority
?
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

721 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