Progress bar is message and percentage are not updated using D 7.83

Created on 19 January 2022, over 2 years ago
Updated 6 July 2023, 12 months ago

Problem/Motivation

After updating to drupal 7.83, the message and the percentage for progress bar of batch process are no longer get updated...

It seems that the html structure of the progress bar is not correct; see the duplicated div tags that has "progress-wrapper" and "progress-striped" classes.

<div class="progress-wrapper" aria-live="polite">
    <div id="progress" class="progress progress-striped active batch-processed">
		<div class="progress-wrapper" aria-live="polite">
			<div id="updateprogress" class="progress progress-striped active">
				<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="97" style="width: 97%;">
					<div class="percentage sr-only">97%</div>
				</div>
			</div>
		<div class="percentage pull-right">97%</div>
		<div class="message">Prepared 1050 out of 1088 Project</div></div></div>
	
	<div class="percentage pull-right">97%</div>
    <div class="message">Start preparation for <em class="placeholder">Projects</em> export<br>&nbsp;</div>
</div>

Steps to reproduce

Install Drupal 7.83 or later.
Perform any batch process that is using batch api

Proposed resolution

Refactor the template of the progress bar both in the tpl and js.

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium msnassar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024