Update copyright 2025.
This commit is contained in:
parent
4f5ddbf3d6
commit
7040f6cefa
@ -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:
|
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:
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,10 @@ class SubprincipleitemsController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@redirect_path = helpers.raw("#{company_caf_path(@caf.company, @caf)}##{helpers.dom_id(@subprincipleitem)}")
|
@redirect_path = helpers.raw("#{company_caf_path(@caf.company, @caf)}##{helpers.dom_id(@subprincipleitem)}")
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
if params[:affirmative].nil?
|
||||||
|
@subprincipleitem.affirmative = false
|
||||||
|
end
|
||||||
|
|
||||||
if @subprincipleitem.update(subprincipleitem_params)
|
if @subprincipleitem.update(subprincipleitem_params)
|
||||||
|
|
||||||
#format.html { redirect_to company_caf_path(@caf.company, @caf) , html_options: { target: helpers.dom_id(@subprincipleitem) } , notice: "html" }
|
#format.html { redirect_to company_caf_path(@caf.company, @caf) , html_options: { target: helpers.dom_id(@subprincipleitem) } , notice: "html" }
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
window.location.href= "<%=@redirect_path%>";
|
window.location.href= "<%=@redirect_path%>";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user