## WeBWorK Main Forum

### solutions in instructor hardcopy (webwork 2.7)

by Gavin LaRose -
Number of replies: 6
Hi all,

I believe the following is the default behavior in WeBWorK 2.7 (at least, this is what I'm seeing): if an instructor generates a hardcopy of a set for which the problems have solutions, s/he sees the solutions regardless of:

• the selection of the "show solutions" checkbox in the generate hardcopy selector page; and
• the setting of "always_show_solution" in %permissionLevels in default.conf/localOverrides.conf.

Can someone else confirm or refute this behavior? It looks like a bug to me, but it may also be that I have something messed up at my end.

Thanks,
Gavin

### Re: solutions in instructor hardcopy (webwork 2.7)

by Michael Gage -
see

http://bugs.webwork.maa.org/show_bug.cgi?id=2707

for more discussion.  Not sure if it is a bug or a feature. :-)

You might ask Geoff what changes he made if any.  I couldn't find a change in the recent pull requests.

### Re: solutions in instructor hardcopy (webwork 2.7)

by Gavin LaRose -
Hi Mike,

Thanks. From the discussion there it does sound as if the code was patched to make the "show solutions" selection be honored, but that doesn't appear to be the case at the moment. I'll follow up with Geoff.

I'd agree with Danny that this is a bug, not a feature.

Gavin

### Re: solutions in instructor hardcopy (webwork 2.7)

by Danny Glin -
This happened to me too.  I'm hoping that this is not the intended behaviour.  I had a student who was having login issues, and I wanted to print him a copy of his assignment to start working on, but I couldn't due to not being able to suppress solutions.

Danny

### Re: solutions in instructor hardcopy (webwork 2.7)

by Gavin LaRose -
Hi all,

Geoff indicates that the behavior that I expected should be the default if one has a fully updated installation of PG. The update would have been made on or around 31 August 2013, so that would require an update to PG after that.

(Thanks, Geoff!)

Gavin

### Re: solutions in instructor hardcopy (webwork 2.7)

by Danny Glin -
I changed always_show_solution to "nobody" on my install, and solutions don't always show up.

I'm not sure I see the need for this setting at all.  Does anyone see a problem with the following scenario:
• When a pg problem is loaded in a page, do the usual checks to see if solutions can be displayed (high enough permissions, after answer date, etc.).  If so, include the solution in the page, hidden with javascript (which is what happens for students in 2.7 already).  Then it is one click and no page loads to view the solution.
• For hard copies, leave the configuration as it was.  When generating a hardcopy, let the user choose if solutions are displayed.
Danny