Thingy view template now has access to field_dateCreated and field_lastUpdated for Things
This commit is contained in:
parent
eca9729d94
commit
9e9fc14983
3 changed files with 10 additions and 4 deletions
|
|
@ -73,6 +73,7 @@
|
|||
- rfe: Protected profile fields don't show delete icon
|
||||
- fixed: Asset manager now sets "proceed" so we go back to asset manager after editing an asset
|
||||
- rfe: Registration form to keep user entries on error - required and errored fields are now highlighted.
|
||||
- added: Thingy view template now has access to field_dateCreated and field_lastUpdated for Things.
|
||||
|
||||
7.5.22
|
||||
- fixed: Layout template now gets prepared correctly
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ use WebGUI::International;
|
|||
use WebGUI::Utility;
|
||||
use WebGUI::Text;
|
||||
use WebGUI::Form::File;
|
||||
use WebGUI::DateTime;
|
||||
use base 'WebGUI::Asset::Wobject';
|
||||
|
||||
|
||||
|
|
@ -2699,6 +2700,8 @@ sequenceNumber');
|
|||
my $hidden = ($field{status} eq "hidden" && !$self->session->var->get("adminOn"));
|
||||
|
||||
my $originalValue = $thingData{"field_".$field{fieldId}};
|
||||
my $dateCreated = $thingData{"dateCreated"};
|
||||
my $lastUpdated = $thingData{"lastUpdated"};
|
||||
my $value = $self->getFieldValue($originalValue,\%field);
|
||||
|
||||
my $otherThingUrl;
|
||||
|
|
@ -2717,6 +2720,8 @@ sequenceNumber');
|
|||
"label" => $field{label},
|
||||
"isHidden" => $hidden,
|
||||
"url" => $otherThingUrl,
|
||||
"dateCreated" => WebGUI::DateTime->new($self->session,$dateCreated)->toUserTimeZone(),
|
||||
"lastUpdated" => WebGUI::DateTime->new($self->session,$lastUpdated)->toUserTimeZone(),
|
||||
);
|
||||
push(@viewScreenTitleFields,$value) if ($field{viewScreenTitle});
|
||||
push(@field_loop, { map {("field_".$_ => $fieldProperties{$_})} keys(%fieldProperties) });
|
||||
|
|
|
|||
|
|
@ -222,11 +222,11 @@ sub createAccountSave {
|
|||
# Validate input
|
||||
my $error;
|
||||
$error = $self->error unless($self->validUsername($username));
|
||||
if ($setting->get("webguiUseCaptcha")) {
|
||||
unless ($form->process('authWebGUI.captcha', "Captcha")) {
|
||||
$error .= '<li>'.$i18n->get("captcha failure","AuthWebGUI").'</li>';
|
||||
}
|
||||
if ($setting->get("webguiUseCaptcha")) {
|
||||
unless ($form->process('authWebGUI.captcha', "Captcha")) {
|
||||
$error .= '<li>'.$i18n->get("captcha failure","AuthWebGUI").'</li>';
|
||||
}
|
||||
}
|
||||
$error .= $self->error unless($self->_isValidPassword($password,$passConfirm));
|
||||
my ($profile, $temp, $warning) = WebGUI::Operation::Profile::validateProfileData($self->session, {regOnly => 1});
|
||||
$error .= $temp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue