After importing a linkit profile, I was prompted with a warning:

"You have unsaved changes. These changes will not be made permanent until you click Save."

However there is no save button on the tab. If I navigate to other tabs the imported profile is removed.

CommentFileSizeAuthor
#1 1606364-1.patch4.93 KBanon
LInkit_bug_screen_shot.png57.88 KBgocaps
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon’s picture

Title: No Save button after importing a profile » No save button when importing a profile
Component: User interface » Code
FileSize
4.93 KB

This issue was bigger then I first thought.

I recently found out that in you can specify a db columns to be 'serial' and use the blob type for that column.
If that is defined, ctools will handle or serialized values correct, else its up to the module itself to "fix" this.
This was actually the base problem here.

I also dug in the ctools code and found some other nice things about the forms that will make this even more stable.

I have attached a patch that will update the db columns to use blobs and some other nice things that will make the import work.

Note: You have to run update.php after applying the patch.
It will not remove any data, or at least that is my goal and in my own tests its not removing or deleting any data. The profiles will stay intact.

anon’s picture

Status: Active » Needs review
anon’s picture

Status: Needs review » Fixed

Commited patch in #1.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mrP’s picture

fixed in 2.6+ for anyone else stumbling on this.