View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 14602 | Bug reports | Survey participants (Tokens) | public | 2019-03-05 14:46 | 2026-11-19 22:22 |
| Reporter | ritapas | Assigned To | |||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.x | ||||
| Summary | 14602: incomplete results from ldap query | ||||
| Description | Inside the /application/views/admin/token/ldappost.php script it seems that something is missing. Moreover, the toggle() function does not work for the p> element in our version of chrome. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | |||||
| I will donate to the project if issue is resolved | |||||
| Browser | |||||
| Database type & version | |||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | |||||
| Git branch / Pull Request URL | |||||
|
This is how we worked around it but we guess it can be done better than this. ldappost.php (3,878 bytes)
<?php
/**
* Result of ldap upload
*/
?>
<div class='side-body <?php echo getSideBodyClass(false); ?>'>
<div class="row">
<div class="col-lg-12 content-right">
<?php if ($xz != 0): ?>
<!-- Success -->
<div class="jumbotron message-box">
<h2 class="text-success"><?php eT("Success"); ?></h2>
<p><?php echo $resultnum; ?></p>
<p>
<?php eT("Results from LDAP Query."); ?><br />
<?php printf(gT("%s records met minimum requirements"),$xv); ?><br />
<?php echo $xz; ?> <?php eT("Records imported"); ?>.<br />
</p>
<?php if ($xy != 0): ?>
<p>
<?php echo $xy; ?> <?php eT("Duplicate records removed"); ?>
</p>
<p>
[<a href='#' onclick='$("#duplicateslist").toggle();'><?php eT("List"); ?></a>]
</p>
<div class='badtokenlist' id='duplicateslist' style='display: none;'>
<ul class="list-unstyled">
<?php foreach ($duplicatelist as $aData) { ?>
<li><?php echo $aData; ?></li>
<?php } ?>
</ul>
</div>
<?php endif;?>
<?php if ($invalidemailcount != 0): ?>
<p>
<?php echo $invalidemailcount; ?> <?php eT("Records with invalid email address removed"); ?>
</p>
<p>
[<a href='#' onclick='$("#invalidemaillist").toggle();'><?php eT("List"); ?></a>]
</p>
<div class='badtokenlist' id='invalidemaillist' style='display: none;'>
<ul class="list-unstyled">
<?php foreach ($invalidemaillist as $aData) { ?>
<li><?php echo $aData; ?></li>
<?php } ?>
</ul>
</div>
<?php endif;?>
</div>
<?php else: ?>
<!-- Error -->
<div class="jumbotron message-box message-box-error">
<h2 class="text-danger"><?php eT("Error"); ?></h2>
<?php if ($xy != 0): ?>
<p>
<?php echo $xy; ?> <?php eT("Duplicate records removed"); ?>
</p>
<p>
[<a href='#' onclick='$("#duplicateslist").toggle();'><?php eT("List"); ?></a>]
</p>
<div class='badtokenlist' id='duplicateslist' style='display: none;'>
<ul class="list-unstyled">
<?php foreach ($duplicatelist as $aData) { ?>
<li><?php echo $aData; ?></li>
<?php } ?>
</ul>
</div>
<?php endif;?>
<?php if ($invalidemailcount != 0): ?>
<p>
<?php echo $invalidemailcount; ?> <?php eT("Records with invalid email address removed"); ?>
</p>
<p>
[<a href='#' onclick='$("#invalidemaillist").toggle();'><?php eT("List"); ?></a>]
</p>
<div class='badtokenlist' id='invalidemaillist' style='display: none;'>
<ul class="list-unstyled">
<?php foreach ($invalidemaillist as $aData) { ?>
<li><?php echo $aData; ?></li>
<?php } ?>
</ul>
</div>
<?php endif;?>
</div>
<?php endif;?>
</div>
</div>
</div>
<br />
|
|
|
In LimeSurvey 7 the LDAP import result page lists both the skipped duplicates and the invalid email addresses, each behind its own working [List] link. This was fixed under issue 17682, so this issue is closed as fixed. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-03-05 14:46 | ritapas | New Issue | |
| 2019-03-05 15:32 | ritapas | File Added: ldappost.php | |
| 2019-03-05 15:32 | ritapas | Note Added: 50779 | |
| 2019-04-17 10:19 | c_schmitz | Description Updated | |
| 2026-11-19 22:22 | c_schmitz | Note Added: 87692 | |
| 2026-11-19 22:22 | c_schmitz | Bug heat | 2 => 4 |
| 2026-11-19 22:22 | c_schmitz | Status | new => closed |
| 2026-11-19 22:22 | c_schmitz | Resolution | open => fixed |