- fix [ 1274951 ] Unable to drag rank in asset manager
- fix [ 1276449 ] 6.7.1 content invisible after edit by content manager - Fixed a few bugs in the new form system related to UI levels and hidden fields.
This commit is contained in:
parent
97161c798e
commit
c687487df1
10 changed files with 208 additions and 171 deletions
|
|
@ -16,6 +16,7 @@ package WebGUI::Form::DateTime;
|
|||
|
||||
use strict;
|
||||
use base 'WebGUI::Form::Text';
|
||||
use WebGUI::Form::Hidden;
|
||||
use WebGUI::DateTime;
|
||||
use WebGUI::International;
|
||||
use WebGUI::Session;
|
||||
|
|
@ -144,5 +145,21 @@ sub toHtml {
|
|||
</script>';
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 toHtmlAsHidden ( )
|
||||
|
||||
Renders the form field to HTML as a hidden field rather than whatever field type it was supposed to be.
|
||||
|
||||
=cut
|
||||
|
||||
sub toHtmlAsHidden {
|
||||
my $self = shift;
|
||||
return WebGUI::Form::Hidden->new(
|
||||
name=>$self->{name},
|
||||
value=>WebGUI::DateTime::epochToSet($self->{value},1)
|
||||
)->toHtmlAsHidden;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue