[Bps-public-commit] rt-extension-assets branch, master, updated. 1.04-1-g234c84a

Alex Vandiver alexmv at bestpractical.com
Mon May 4 13:49:32 EDT 2015


The branch, master has been updated
       via  234c84a8b8cb409e8396221850130d3746e85877 (commit)
      from  d5d9fd22cd2754e5a1f799432ac2c5b72150abc9 (commit)

Summary of changes:
 html/Asset/Elements/EditBasics | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 234c84a8b8cb409e8396221850130d3746e85877
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Apr 16 12:50:34 2015 -0400

    Ensure that grouping-less custom fields keep their values as well
    
    38094c81 provided KeepValue to EditCustomFieldGroupings, in order to
    preserve submitted values in Date/DateTime CFs across CF validation
    failures or multiple file uploads; this also applies to defaults passed
    explicitly via query parameters.  However, the change only affected CFs
    in the "Details" pane, and not CFs included in the Basics pane.
    
    Pass KeepValue to the CFs found in the Basics box as well.

diff --git a/html/Asset/Elements/EditBasics b/html/Asset/Elements/EditBasics
index 3095c35..fbfde33 100644
--- a/html/Asset/Elements/EditBasics
+++ b/html/Asset/Elements/EditBasics
@@ -71,7 +71,7 @@
 %   for my $name ( @cf_names ) {
 %       $cfs->Limit( FIELD => 'Name', VALUE => $name, CASESENSITIVE => 0 );
 %   }
-  <& /Elements/EditCustomFields, Object => $AssetObj, CustomFields => $cfs, InTable => 1 &>
+  <& /Elements/EditCustomFields, Object => $AssetObj, CustomFields => $cfs, InTable => 1, KeepValue => 1 &>
 % }
 % $m->callback(%ARGS, CallbackName => "AfterFields");
 </table>

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list