Skip to content

Commit

Permalink
Webasyst Framework v.2.8.1
Browse files Browse the repository at this point in the history
  * Fixed photo editing in the user profile after the update to version 2.8.0.
  • Loading branch information
Leonix committed Mar 23, 2023
1 parent f5616a9 commit 2b3b3d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions wa-apps/installer/lib/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
'description' => 'Install new apps from the Webasyst Store',
'icon' => 'img/installer.svg',
'mobile' => false,
'version' => '2.8.0',
'critical' => '2.8.0',
'version' => '2.8.1',
'critical' => '2.8.1',
'system' => true,
'vendor' => 'webasyst',
'csrf' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class webasystProfilePhotoAction extends waViewAction
public function execute()
{
$id = waRequest::request('id', wa()->getUser()->getId(), 'int');
$ui = waRequest::request('id', '1.3', 'int');
$ui = waRequest::request('ui', null, 'string');
$contact = new waContact($id);

// If there is a photo for this contact, show it to crop
Expand All @@ -18,10 +18,8 @@ public function execute()
$oldImage = $contact->getPhoto('original');
}

if($ui === '1.3') {
$this->setTemplate('templates/actions-legacy/profile/ProfilePhoto.html');
}else{
$this->setTemplate('templates/actions/profile/ProfilePhoto.html');
if (!empty($ui) && $ui != wa()->whichUI()) {
waRequest::SetParam('force_ui_version', $ui);
}

$this->view->assign(array(
Expand Down
4 changes: 2 additions & 2 deletions wa-system/webasyst/lib/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
return array(
'name' => 'Webasyst',
'prefix' => 'webasyst',
'version' => '2.8.0',
'critical' => '2.8.0',
'version' => '2.8.1',
'critical' => '2.8.1',
'vendor' => 'webasyst',
'csrf' => true,
'header_items' => array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h1>
$('#contact-photo-crop-dialog').remove();
$('<div id="contact-photo-crop-dialog">').appendTo($wrapper).waDialog({
'class': 'large',
url: "?module=profile&action=photo",
url: "?module=profile&action=photo&ui=1.3",
onLoad: function(d) {
// move buttons where appropriate
var $dialog = $(this);
Expand Down

0 comments on commit 2b3b3d3

Please sign in to comment.