Skip to content

Commit

Permalink
Fix deprecation message when using with report/editdates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Dec 3, 2024
1 parent 300d784 commit 38a54b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/local/mod/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,10 @@ private function build_new_element_name($cmid): string {
* @return string|null
*/
private function get_cmid_from_element_name(?string $elementname): ?string {
if (empty($elementname)) {
return null;
}

$parts = explode('_', $elementname);

if (count($parts) != 4) {
Expand All @@ -773,7 +777,7 @@ private function get_cmid_from_element_name(?string $elementname): ?string {
*
* Fields in report edit dates built as date_mod_{cmid}_{datefieldname}.
*
* @param string|null $elementname Name of the element.
* @param string $elementname Name of the element.
* @return string|null
*/
private function get_date_field_name_from_element_name(string $elementname): ?string {
Expand Down

0 comments on commit 38a54b1

Please sign in to comment.