The Ajax code in the views integration uses

$.get('scs_views/nodeselected', 'nid=' + nodes, scs_ajax_return);

However, if the view used to select the newsletter isssues is not the site root, this will fail due to the relative path being used.
I.e. a view with the path admin/content/select_newsletter will result in the ajax request getting sent to "admin/content/select_newsletter/scs_views/nodeselected", a 404.
Instead,

					$.get('/scs_views/nodeselected', 'nid=' + nodes, scs_ajax_return);

Should do the trick.

Comments

hsudhof’s picture

Priority: Critical » Normal
dtrdewaele’s picture

Indeed.
I have discovered this issue too yesterday.

Issue will be fixed in the development release later this week.

dtrdewaele’s picture

Status: Active » Needs work
dtrdewaele’s picture

Status: Needs work » Fixed

Fix in this commit:

Commit #385820 by coworks_dieter at 17:46

jm.federico’s picture

Priority: Normal » Critical
Status: Fixed » Needs work

Guys, big problem

We know about the problem with relative paths already.
The problem with absolute path is that we are assuming drupal is installed in the root directpry of the server, but if drupal path is something like

www.example.com/path/to/drupal

then the callback should be

www.example.com/path/to/drupal/scs_views/nodeselected

But with the fix you gave it is

www.example.com/scs_views/nodeselected

the solution is this:

$.get(Drupal.settings.basePath+'scs_views/nodeselected', 'nid=' + nodes, scs_ajax_return);

Marking as critical because it renders the module unusable in such scenario.

Cheers

dtrdewaele’s picture

Will be added to the next commit.
Thx

dtrdewaele’s picture

Status: Needs work » Fixed

Just commited this to CVS.
Will be available in next release.

Thx

Status: Fixed » Closed (fixed)

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