Updated dev site from 7.x-1.6 to 7.x-1.6+33-dev. Attempted to edit access config of webform course object setting to change from event to grade evaluation. Upon save get error 'Please select a node type.'

Interesting to note. I have another dev site that started out with course 7.x-1.6+32-dev (did not update) and I was able to change the webform object settings without receiving the error.

Comments

lardfw created an issue. See original summary.

djdevin’s picture

Do you have more than one type of webform by any chance?

lu_smithcon’s picture

I do have webform enabled for basic page content type, but it is not configured as a course type or course content.

lu_smithcon’s picture

So, should there be an option available to select a node type (since it is asking)? -or- Don't enable webform for any other content type.

djdevin’s picture

I actually can't reproduce this, even with two webform content types existing in the system. I tried new webforms, existing webforms, etc.

I tried with the most recent dev which did have a couple form changes in it. Can you provide more specific steps to reproduce?

lu_smithcon’s picture

I can't seem to reproduce it either though I also can't get rid of it. I created it by selecting webform from the select list on the course-outline page and then adding questions (after saving the outline). I was using 7.x-1.6 at that time. I then updated to 7.x-1.6+33-dev and the error started. In an attempt to get rid of it, I disabled webform availability in the other content type, but that didn't work. I created another webform in the course the same way I created the 1st one and I do not get an error msg with that one.

lu_smithcon’s picture

Now I am getting the error when trying to edit settings of payment course object in addition to the webform course object; and I'm getting another error asking for a numeric value for both the low and high grade range when I tried to edit the settings for the payment object. Can't edit or delete either course object.

djdevin’s picture

I think this is an issue with old data and Course is expecting the data to be set up correctly. Let me investigate.

lu_smithcon’s picture

StatusFileSize
new27.36 KB
new18.9 KB

Thanks. Don't know if this is a related issue but since it is asking for the grade information in the payment object, it might be worth noting there is no grade field in the course object config of the new course quiz object nor an edit questions/add questions link for it in the course outline (in a new course created after the update to the dev version). As a result (assumed) of not having a grade field in the new course quiz object, I cannot select a grade based access for the object following it (the quiz object is not available in the select list). I added questions through the quiz node (manage questions) and the quiz seems to function properly in the new course. I can create a new issue for this if you prefer.

lu_smithcon’s picture

A new message (Notice: Undefined index: active in course_determine_context() (line 2623 of /drupal/sites/all/modules/course/course.module) when I attempt to edit the webform that started all of this (haven't gotten it before). Got this one too, Notice: Undefined property: stdClass::$webform in CourseObjectWebform->getWarnings() (line 12 of /drupal/sites/all/modules/course/modules/course_webform/course_webform.classes.inc). Maybe they will help.

djdevin’s picture

Status: Active » Needs review
StatusFileSize
new1023 bytes
djdevin’s picture

Status: Needs review » Fixed

  • djdevin committed 967d81c on 7.x-1.x
    Issue #2560667 by djdevin: Error: please select node type when editing...

Status: Fixed » Needs work

The last submitted patch, 11: error_please_select-2560667-11.patch, failed testing.

The last submitted patch, 11: error_please_select-2560667-11.patch, failed testing.

djdevin’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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