Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Email account settings: Signature" and "Addressbooks" are not updated by "Save". #116

Open
lvarnava opened this issue Nov 17, 2024 · 3 comments

Comments

@lvarnava
Copy link

Debian GNU/Linux 12 (bookworm)
PHP 8.2.24
apache2 2.4.62
afterlogic-lite 9.8.0

Hi!

To Reproduce:

I log into my user account.

  1. Go to "Settings"
  2. "Email account"
  3. "Signature"
  4. Edit signature
  5. Save - "Settings have been updated successfully".
  6. Go to "New Message"
  7. Open to compose the letter
  8. Result - signature is not updated

It updates only after "F5".

The same effect when adding or editing an address book in "Manage address books".

@lvarnava lvarnava changed the title Email account settings: "Signature" and "Addressbooks" are not updated by "Save". "Email account settings: Signature" and "Addressbooks" are not updated by "Save". Nov 17, 2024
@afterlogic-support
Copy link
Member

afterlogic-support commented Nov 18, 2024

Hello,

The issue with signature is a known one, it has already been corrected and the fix will be included in upcoming 9.8.1 release. To fix the issue on your installation, locate the following line in static/js/51.app.3a5430b621288859f3a7.js file:

App.broadcastEvent('MailWebclient::ParseAccount::after', { account: this , data: oData });

and add the following code before it:

ko.computed(function() {
	const sSignature = this.signature()
	const bUseSignature = this.useSignature()
	const sFriendlyName = this.friendlyName()
	const oIdentity = _.find(this.identities(), oIdentity => oIdentity.bAccountPart)
	
	if (oIdentity) {
		oIdentity.signature(sSignature)
		oIdentity.useSignature(bUseSignature)
		oIdentity.friendlyName(sFriendlyName)
	}
}, this)

You'll need to set "UseAppMinJs" to false in data/settings/config.json file so that non-minified JavaScript is used, and purge browser cache to apply changes.

The same effect when adding or editing an address book in "Manage address books".

This issue, however, wasn't among the known ones. I have reported it to the developers. Thanks.

@afterlogic-support
Copy link
Member

locate the following line in webmail/static/js/51.app.3a5430b621288859f3a7.js file:

In WebMail Lite 9.8.0, the file is static/js/27.app.a1ff73765e2928b89a52.js instead.

@lvarnava
Copy link
Author

Thanks. Its works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants