Issue Summary

Problem

When creating a manual context filter in a variant, by entering in the information required for the filter i.e. node id, term id, the information does not save on the first time. After saving, reopening the context filter, re-entering the input and saving again does stick.

To reproduce:

Create a manual context filter that requires information, i.e. node id
In the 'title or id' box, enter in a title or id number
Click 'Finish'
Save the variant
Re-open the contextual filter in the variant, the information was not saved
Enter in the id or title again, 'Finish' the filter, save the panel. The information is now saved

Using

Views-7.x-3.0-rc1
Panels-7.x-3.0-dev
Ctools-7.x-3.0-rc1

Comments

merlinofchaos’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 7.x-3.x-dev » 7.x-1.x-dev

Moving to CTools.

clashar’s picture

I am getting
Notice: Undefined index: context_entity:node_1 in theme_ctools_context_list() (line 200 of Z:\home\paris9.kz\www\emploi\sites\all\modules\ctools\includes\context.theme.inc).

not sure if it's the same issue but the error is the same as in #1230222: Manually created contexts for a variant are not available as contextual filters to views in variant which directs here.

clashar’s picture

error appears after adding "context" -> "node" in Panel
using Ctools 7.x-1.x-dev of 2011-Aug-07

clashar’s picture

yes possible to save only on second time when reopening and saving the same context node

clashar’s picture

other errors could appear like in #1255526: Notice: Undefined variable: id in ctools_context_create_entity() (line 81...
Also re-save for second times does the trick.

merlinofchaos’s picture

Status: Active » Fixed

Ok, the entity was misusing the "id" conf value which is reserved for storing the internal id of the context. I shifted it over to "entity_id" -- but this means existing contexts might break a little. It should render ok but editing them looks hard to cope with.

Status: Fixed » Closed (fixed)

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