Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure fileName is not empty in WebworkWebservice.
When rendering a problem via WebworkWebservice, only use $rh->{fileName} if it is defined and not empty. This ensures that the $ProblemRecord->source_file is set so images and other assets can be found relative to the original file name when previewing, checking, or showing correct answers in the PGProblemEditor rendered problem. This fixes openwebwork#2556.
- Loading branch information