Skip to content

Commit

Permalink
Merge pull request #1370 from sparc-request/fix-save-as-draft-edit-ssr
Browse files Browse the repository at this point in the history
Fix Save as Draft bug when editing a SSR [#151738929 ]
  • Loading branch information
Stuart-Johnson committed Jun 15, 2018
2 parents 7c29aad + 6e2fe54 commit 2bad293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -31,6 +31,6 @@
= t(:proper)[:navigation][:save_as_draft][:body]
.modal-footer
.center-block
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path, class: 'btn btn-default yes-button', data: { disable_with: t(:proper)[:navigation][:bottom][:saving] }
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path(sub_service_request_id: sub_service_request_id), class: 'btn btn-default yes-button', data: { disable_with: t(:proper)[:navigation][:bottom][:saving] }
%button.btn.btn-default{ type: 'button', data: { dismiss: 'modal' } }
= t(:constants)[:no_select]
2 changes: 1 addition & 1 deletion app/views/service_requests/save_and_exit.js.coffee
Expand Up @@ -17,5 +17,5 @@
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
$("#modal_place").html("<%= escape_javascript(render( 'service_requests/modals/save_as_draft_modal' )) %>")
$("#modal_place").html("<%= escape_javascript(render( 'service_requests/modals/save_as_draft_modal', sub_service_request_id: @sub_service_request.try(:id) )) %>")
$("#modal_place").modal 'show'

0 comments on commit 2bad293

Please sign in to comment.