From 7040f6cefa65a89f13360356635a715bb0d0c427 Mon Sep 17 00:00:00 2001 From: Jez Caudle Date: Tue, 14 Jan 2025 20:05:46 +0000 Subject: [PATCH] Update copyright 2025. --- README.md | 2 +- app/controllers/subprincipleitems_controller.rb | 4 ++++ app/views/subprincipleitems/update.html.erb | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9442cf0..4775660 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Things you may want to cover: * ... -Copyright 2022 - 2024 Hidden Agenda LIMITED +Copyright 2022 - 2025 Hidden Agenda LIMITED Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/app/controllers/subprincipleitems_controller.rb b/app/controllers/subprincipleitems_controller.rb index 8954060..d16040d 100644 --- a/app/controllers/subprincipleitems_controller.rb +++ b/app/controllers/subprincipleitems_controller.rb @@ -8,6 +8,10 @@ class SubprincipleitemsController < ApplicationController def update @redirect_path = helpers.raw("#{company_caf_path(@caf.company, @caf)}##{helpers.dom_id(@subprincipleitem)}") respond_to do |format| + if params[:affirmative].nil? + @subprincipleitem.affirmative = false + end + if @subprincipleitem.update(subprincipleitem_params) #format.html { redirect_to company_caf_path(@caf.company, @caf) , html_options: { target: helpers.dom_id(@subprincipleitem) } , notice: "html" } diff --git a/app/views/subprincipleitems/update.html.erb b/app/views/subprincipleitems/update.html.erb index 6785255..56a76cf 100644 --- a/app/views/subprincipleitems/update.html.erb +++ b/app/views/subprincipleitems/update.html.erb @@ -1,3 +1,4 @@ +