message box text does not render correctly on tablets

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

message box text does not render correctly on tablets

Post by sticcino »

Device: Samsung Tablet S3
google chrome 73.0.3683.90
Android 8.0.0 SM-T825 Build/R16Nw
set as not "Desktop site"

in a xxx_view form, the email message status does not render correctly on the tablet

the text from the existing code: - displays exactly like it is shown in the return() statement:

	// Check email sent status
	if ($emailSent) {

		// Update email sent count
		$_SESSION[EXPORT_EMAIL_COUNTER]++;

		// Sent email success
		return "<p class=\"text-success\">" . $Language->phrase("SendEmailSuccess") . "</p>"; // Set up success message
	} else {

		// Sent email failure
		return "<p class=\"text-danger\">" . $email->SendErrDescription . "</p>";
	}

changing to this renders the code correctly:

	// Check email sent status
	if ($emailSent) {

		// Update email sent count
		$_SESSION[EXPORT_EMAIL_COUNTER]++;

		// Sent email success
		return ($Language->phrase("SendEmailSuccess")); // Set up success message
	} else {

		// Sent email failure
		return ($email->SendErrDescription);
	}

replace
return "<p class=\"text-success\">" . $Language->phrase("SendEmailSuccess") . "</p>"; // Set up success message
with
return ($Language->phrase("SendEmailSuccess"))"; // Set up success message

this was also inherent to previous versions of phpMaker


mobhar
User
Posts: 11729

Post by mobhar »

After removing the <p></p> tag from that code, does it mean the issue has been resolved?


sticcino
User
Posts: 1043

Post by sticcino »

yes.... the only problem is that its in the phpMaker generated code, so you'll have to remember to adjust if you regenerate your code frequently..

its displaying fine without that code.


Post Reply